<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet library="css" name="default.css" />
        <h:outputStylesheet library="css" name="cssLayout.css" />
        <title>
            <ui:insert name="title">MyGrona</ui:insert>
        </title>
    </h:head>

    <h:body>

        <div id="top" class="top">
            <ui:insert name="top">MyGrona</ui:insert>
        </div>

        <div>
            <div id="menu">
                <ui:insert name="menu">
                    <h:form>
                        <h:link value="#{msgs.link_home}" outcome="/index" />
                        <br />
                        <h:link value="#{msgs.link_applicant}" outcome="/Applicant/index" />
                        <br />
                        <h:link value="#{msgs.link_login}" outcome="/Login" rendered="#{!menuView.authenticated}" />
                        <ui:fragment rendered="#{!menuView.authenticated}">
                            <br />
                        </ui:fragment>
                        <h:link value="#{msgs.link_registration}" outcome="/Register" rendered="#{!menuView.authenticated}" />
                        <ui:fragment rendered="#{!menuView.authenticated}">
                            <br />
                        </ui:fragment>
                        <h:link value="#{msgs.link_jobapplication}" outcome="/JobApplication/PersonalInfo" />
                        <br />
                        <h:commandLink value="#{msgs.link_logout}" action="#{menuView.logout()}" rendered="#{menuView.authenticated}"/>
                        <ui:fragment rendered="#{menuView.authenticated}">
                            <br />
                        </ui:fragment>
                    </h:form>
                </ui:insert>
            </div>

            <h:panelGroup id="content" layout="block">
                <ui:insert name="content">Content</ui:insert>
            </h:panelGroup>

        </div>

    </h:body>

</html>
